#include "memdb/impl/simple/Factory.h"

#include "memdb/impl/simple/Meta.h"
#include "memdb/impl/simple/Data.h"

namespace memdb {
namespace impl {
namespace simple {

Factory::Factory(const std::filesystem::path & dbpath)
: memdb::impl::Factory(dbpath)
{
}
Factory::~Factory() {
}


std::unique_ptr<IMeta> Factory::createMeta()  const {
	return std::unique_ptr<IMeta>(new Meta(_dbpath));
}
std::unique_ptr<IData> Factory::createData(const std::string & name) const {
	return std::unique_ptr<IData>(new Data(_dbpath, name));
}

}//namespace simple
}//namespace impl
}//namespace memdb
